package com.leizi.igym.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-20  21:54
 * @Description:
 */
//
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "失物招领返回的数据格式")
public class LostVO {

    @Schema(name = "主键值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name = "失物招领展示图")
    private String picture;

    @Schema(name = "失物招领标题")
    private String title;

    @Schema(name = "失物招领发布人昵称")
    private String nickname;

    @Schema(name = "失物招领描述")
    private String descrip;

    @Schema(name = "失物招领状态")
    private Integer status;

    @Schema(name = "失物招领创建时间")
    private LocalDateTime createTime;

    @Schema(name = "失物招领发布人头像")
    private String avatar;
}
